Setup-Definition Code Resource Messages
A telephone tool's setup-definition code resource must be able to handle five messages.
enum { telSpreflightMsg = 0, telSsetupMsg = 1, telSitemMsg = 2, telSfilterMsg = 3, telScleanupMsg = 4 };Constant descriptions
telSpreflightMsg
- Your tool receives this message when an application calls
TELSetupPreflight
to get a handle to the dialog item list of the basic dialog elements supported by your tool. In response to this message, your tool should return, as its function result, a handle to a list of the basic dialog items needed to set up and configure the tool. The application may them append other items to that list before displaying a setup dialog box. The application is responsible for disposing of that handle.- On entry, parameter
p3
points to a long integer that is passed with other setup-definition messages. If your tool needs to allocate and configure any private storage, it should do so now and put the address of that storage into the long integer pointed to byp3
. Parametersp1
andp2
are unused.telSsetupMsg
- Your tool receives this message when an application calls
TELSetupSetup
to initialize items in the dialog item list returned by theTELSetupPreflight
function. On entry, parameterp3
points to the tool's private setup storage. Your tool can use the information stored there to configure the dialog items. Parametersp1
andp2
are unused.telSitemMsg
- Your tool receives this message when an application calls
TELSetupItem
to let your tool process an event that is associated with an item in a custom tool-settings dialog box. On entry, parameterp1
points to the index of an item in the dialog item list, and parameterp3
points to the tool's private setup storage. Your tool can change the selected item by modifying the item number to whichp1
points. Parameterp2
is unused.telSfilterMsg
- Your tool receives this message when an application calls
TELSetupFilter
to let your tool filter an event that is associated with an item in a custom tool-settings dialog box. On entry, parameterp1
points to an event record,p2
points to the index of an item in the dialog item list, and parameterp3
points to the tool's private setup storage. Your tool should respond by returningtrue
if it handled the event andfalse
otherwise.telScleanupMsg
- Your tool receives this message when an application calls
TELSetupCleanup
orTELSetupXCleanup
to have your tool dispose of any storage allocated inTELSetupPreflight
and perform other cleanup operations. On entry, parameterp3
points to the tool's private setup storage. Parameterp1
is unused. Parameterp2
is unused (and set to 0) if the application calledTELSetupCleanup
. If the application calledTELSetupXCleanup
, parameterp2
is set to 1 if theOKed
parameter wastrue
and is 0 if theOKed
parameter wasfalse
. Your tool can use the value ofp2
as it desires.- Note
- There is no setup-definition code resource message that corresponds to the
TELSetupPostflight
function, becauseTELSetupPostflight
requires no action from a telephone tool. TheTELSetupPostflight
function releases the setup-definition code resource from memory.![]()
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help